package com.zhuss.food.db.dao.ext;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.food.db.dao.gen.OrderProductMapper;
import com.zhuss.food.db.entity.Order;
import com.zhuss.food.db.entity.OrderProduct;

@Mapper
public interface OrderProductDao extends OrderProductMapper {
    
	void create(OrderProduct orderProduct);
	
	void cancel(@Param("orderId") Long orderId, @Param("status") Integer status);
	
	void fetch(@Param("orderId") Long orderId, @Param("status") Integer status);
	
	void receive(@Param("orderId") Long orderId, @Param("status") Integer status);
	
	void topic(@Param("orderId") Long orderId, @Param("status") Integer status);

	List<Order> selectOrderList(@Param("creatorId") Long creatorId, @Param("productId") Long productId, @Param("statusList") List<Integer> statusList, @Param("startDate") Date startDate, @Param("endDate") Date endDate);

	List<OrderProduct> listOrderProduct(@Param("orderId") Long orderId);
	
	
	List<String> findExistProduct();
	
	
}